/* 
* @Author: anchen
* @Date:   2017-06-13 18:52:48
* @Last Modified by:   anchen
* @Last Modified time: 2017-06-13 19:09:43
*/
var requestUrl = [
    {
        id:"user-active",
        url:"../../data/au.json"
    }
];
function filterUrl(element,option){
    switch (option){
        case "user-active":
            var url = checkUrl(option);
            requestData(element,option,url);
        break;
        default:
        break;
    }
}

function checkUrl(option){
    for(i in requestUrl){
        var item = requestUrl[i];
        if(option == item.id){
            return item.url;
        }
    }
}

function requestData(element,option,url){
    console.log(url);
}